package run.siyuan.jdk.设计模式.策略模式.策略模式案例2;

/**
 * @className: Client
 * @Description: TODO
 * @author: siyuan
 * @date: 2022/3/21 1:51 下午
 */
public class Client {

    public static void main(String[] args) {
        //声明一个具体的策略
        Strategy strategy = new ConcreteStrategy1();
        //声明上下文对象
        Context context = new Context(strategy);
        //执行封装后的方法
        context.doAnythinig();
    }

}
